<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="net.oschina.team.note.bean.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>即时贴/便签</title>
<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.4.custom.min.css">
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap.min.js"></script>

<link rel="stylesheet" href="css/sticky.css">
<link rel="stylesheet" href="css/index.css">
<script type="text/javascript" src="js/sticky.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</head>
<body>
	<div class="stickynotes">
	<%NotesTemplate notesTemplate = NotesTemplate.getByUser(1); %>
    <a type="button" class="btn btn-primary" id="createnote" href="javascript:create('#createnote');" flag="0">创建</a>
    <%if(notesTemplate.getInt("status") == NotesTemplate.STATUS_SHOW){ %>
    	<a type="button" class="btn btn-primary" id="showOrHide" data-status="show" data-user="1">隐藏</a>
    <%}else{ %>
    	<a type="button" class="btn btn-primary" id="showOrHide" data-status="hide" data-user="1">显示</a>
    <%} %>
    <a type="button" class="btn btn-primary" id="setting" href="/setting">设置</a>
    <script type="text/javascript">
    <%
    	if(notesTemplate.getInt("status") == NotesTemplate.STATUS_SHOW){
    %>
		showAllNotes(1);
	<%
		}
    %>
    </script>
    </div>
</body>
</html>